﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="slider.aspx.cs" Inherits="admin_admin_movie" Title="电影管理 - 视频之家管理后台" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<%
        if (Session["limit"].ToString() != "1" && Session["limit"].ToString() != "2")
        {
            Response.Redirect("logout.aspx");
        }
         %>
    <!-- 添加影片开始 -->
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="row">
            <div class="col-md-2">
                <h3>
                    <span class="label label-default">轮播图管理</span></h3>
            </div>
            <div class="col-md-10">
            </div>
            <div class="col-md-2">
            </div>
        </div>
        <div class="row" style="padding-top: 50px">
            <div class="col-md-12">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist" id="myTab">
                    <li role="presentation" class=""><a href="#home" role="tab" data-toggle="tab">添加轮播图</a>
                    </li>
                    <li role="presentation"><a href="#profile" role="tab" data-toggle="tab">管理轮播图</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content" style="padding-top: 50px">
                    <div role="tabpanel" class="tab-pane active" id="home">
                        <form class="form-horizontal" role="form" name="addSlider" id="addSlider">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                图片</label>
                            <div class="col-sm-10">
                                <input type="file" class="form-control" name="files" accept="image/png,image/gif,image/jpeg"
                                    placeholder="" id="previewImg">
                                <div id="preview">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                简介</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" name="intro" id="Textarea1" cols="30" rows="10"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary">
                                    确定</button>
                            </div>
                        </div>
                        </form>
                    </div>
                    <div role="tabpanel" class="tab-pane" id="profile">
                        
                        <div style="padding-bottom: 20px">
                            <button type="button" class="btn btn-danger" id="delAll">批量删除</button>
                        </div>
                        <table class="table table-striped" style="table-layout: fixed; text-align: center;">
                        
                            <thead style="text-align:center">
                                <tr>
                                    <th>
                                        <input type="checkbox" id="selectAll">
                                    </th>
                                    <th>
                                        名称
                                    </th>
                                    <th>
                                        图片
                                    </th>
                                    <th>
                                        简介
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            <tbody class="js-sliders" style="text-align:center">
                                
                            </tbody>
                        </table>
                        <div id="Pagination"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div> </div>
    <!-- 更改弹框 -->
    <div class="modal fade" id="updateSlider" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">
                        轮播图修改</h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" role="form" id="updateForm">
                    <div class="form-group">
                            <label class="col-sm-2 control-label">
                                名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" placeholder="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                图片</label>
                            <div class="col-sm-10">
                                <input type="file" class="form-control" name="files" accept="image/png,image/gif,image/jpeg"
                                    placeholder="" id="u_previewImg">
                                <div id="u_preview">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                简介</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" name="intro" id="Textarea2" cols="30" rows="10"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭</button>
                    <button type="button" class="btn btn-primary" data-id="0" id="updateBtn">
                        保存</button>
                </div>
            </div>
        </div>
    </div>
    <script src="js/slider.js"></script>
</asp:Content>
